package com.deng.util;

public class FunctionFilter {

	public static String functionReplace(String s){		
		try{
			if(s == null || s.length() == 0){
				return null;
			}
			return s.replaceAll("dbo.FUN_PeroidBonus\\(@organization_id,@duty_id,@stat_time,", "某时间段的奖金总额(")
			.replaceAll("dbo.KPI_Period\\(@organization_id,@duty_id,@stat_time,", "KPI统计法(")
			.replaceAll("dbo.UP_Period\\(@organization_id,@duty_id,@stat_time,", "绩效单价制统计法(");
		}catch(Exception ex){
			ex.printStackTrace();
		}		
		return null;
	}
	public static void main(String s[]){
		String s1  = "@CBB/dbo.FUN_PeroidBonus(@organization_id,@stat_time)*dbo.FUN_OneMonthTotalPointWithWeight(@organization_id,@stat_time)";
		System.out.println(s1.replaceAll("dbo.FUN_PeroidBonus\\(@organization_id,@stat_time,", "某时间段的奖金总额("));
		
	}
	
	
}
